/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ventas.dao;

import com.ventas.bean.Categoria;
import com.ventas.bean.Usuario;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author jesus
 */
public class Pruebas {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
//        try {
//             List<Categoria> lst = new ArrayList<>();
//        CategoriaDao ca = new CategoriaDao();
//        lst = ca.obtener();
//            System.out.println(lst.get(0).getCat_id());
//        } catch (Exception e) {
//        }
         try {
            UsuarioDao u =new UsuarioDao();
            Usuario us = new Usuario();
            us = u.Login("mroque", "654321");
            System.out.println(us.getPersonal().getPer_apellidos());                    
        } catch (Exception e) {
             System.out.println("eror" +e.getMessage());
        }
       
    }
    
    public void Listar(){
        try {
            UsuarioDao u =new UsuarioDao();
            Usuario us = new Usuario();
            us = u.Login("mroque", "654321");
            System.out.println(us.getPersonal().getPer_apellidos());                    
        } catch (Exception e) {
        }
    }
    
}
